<html>
<script src="../jqtouch/jquery-1.4.2.min.js"></script>
<script>

var signupData = {'email' : 'klas@opel',
                  'username' : 'Klas Opel'};

var DATA = {'data' : {'method': 'signup',
                      'input' : signupData,
                      'mobileid' : 'mymobileid'} };

$.ajax({
  type: 'POST',
  url: 'service.php',
  data: DATA,
  success: function(result) { console.log("OK: " + result); },
  error: function(a, b, c) { console.log("ERR: " + c); },
  dataType: 'json'
});

</script>
</html>
